//
//  CSGXCommodityPickerController.h
//

#import "GXBaseViewController.h"
#import "CSGXCommInfoView.h"

#import "TSaleInfoModel.h"
#import "TCommodityCategoryModel.h"


typedef void(^CallBackIsHaveCommodity)(BOOL isHaveCommdity);

@interface CSGXCommodityPickerController : GXBaseViewController

@property (nonatomic, assign) ViewControllerEnum viewControllerEnum;

///点击的分类栏的索引
@property(nonatomic, assign) NSInteger dataIndex; // test

@property (nonatomic, copy) NSString * warehouseNo; //warehouseNo

///商品编号（通过扫码获得的商品编号）
@property (nonatomic, copy) NSString * commodityNo;

/// saleModelList 数据源
@property (nonatomic, strong) NSArray<TSaleInfoModel *> * saleModelList;

/// tvFirst 数据 (only have caFirstType)
@property (nonatomic, strong) NSArray<TCommodityCategoryModel *> *commFirstModels;



/**
 类方法 实例化 CSGXCommodityController
 
 @return instanctype
 */
+ (instancetype)commodityPickerVcWithControllerEnum:(ViewControllerEnum)controllerEnum;


@property (nonatomic, copy) CallBackIsHaveCommodity callBackIsHaveCommodity;



#pragma mark - check
@property (nonatomic, strong) NSArray<TInventoryModel *> *inventoryList;
@property (nonatomic, strong) __block NSMutableArray<TInventoryModel *> *inventoryPreviewList;

@end
